﻿using Abp.AutoMapper;
using Magicodes.Admin.SFOrders;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Magicodes.Admin.Web.Models
{
    

    public class SFQiaoRouteModel
    {
        /// <summary>
        /// 
        /// </summary>
        public SFQiaoRouteRequest Request { get; set; }


        [AutoMapTo(typeof(SFQiaoRouteWaybillRoute))]
        public class WaybillRoute
        {
            /// <summary>
            /// 
            /// </summary>
            [JsonProperty("@id")]
            public string ResultId { get; set; } 
            /// <summary>
            /// 
            /// </summary>
            [JsonProperty("@mailno")]
            public string mailno { get; set; }
            /// <summary>
            /// 
            /// </summary>
            [JsonProperty("@orderid")]
            public string orderid { get; set; }
            /// <summary>
            /// 
            /// </summary>
            [JsonProperty("@acceptTime")]
            public string acceptTime { get; set; }
            /// <summary>
            /// 深圳市
            /// </summary>
            [JsonProperty("@acceptAddress")]
            public string acceptAddress { get; set; }
            /// <summary>
            /// 备注
            /// </summary>
            [JsonProperty("@remark")]
            public string remark { get; set; }
            /// <summary>
            /// 
            /// </summary>
            [JsonProperty("@opCode")]
            public string opCode { get; set; }

            
        }

        public class Body
        {
            /// <summary>
            /// 
            /// </summary>
            public WaybillRoute WaybillRoute { get; set; }
        }

        public class SFQiaoRouteRequest
        {
            /// <summary>
            /// 
            /// </summary>
            [JsonProperty("@service")]
            public string service { get; set; }
            /// <summary>
            /// 
            /// </summary>
            [JsonProperty("@lang")]
            public string lang { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public Body Body { get; set; }
        }

    }
}
